﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CQIE.LabAssist.Models
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("TB_User")]
    public class User
    {
        #region 主表属性
        /// <summary>
        /// 用户id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 用户工号
        /// </summary>
        public string num { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        public string Password { get; set; }


        /// <summary>
        /// 用户名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 用户电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool State { get; set; }

        #endregion

        #region 外表
        /// <summary>
        /// 学院
        /// </summary>
        public Academician Academician { get; set; }

        /// <summary>
        /// 学院id
        /// </summary>
        public int acadminianId { get; set; }
        #endregion
    }
}
